package com.test.stream;

import java.util.stream.Stream;

public class StreamNPE {

    public static void main(String[] args) {

        final Object rs = Stream.of(1, 2)
            .map(item -> null)
            .findFirst()
            .orElse(3);
        System.out.println(rs);
    }
}
